package edu.ncsu.monopoly.logic.cells;

import edu.ncsu.monopoly.logic.GameMaster;
import edu.ncsu.monopoly.logic.entities.Player;

public class GoToJailCell extends Cell {
	
	public GoToJailCell() {
		setName("Go to Jail");
	}

	public void playAction() {
		Player currentPlayer = GameMaster.instance().getCurrentPlayer();
		GameMaster.instance().sendToJail(currentPlayer);
	}
	
	@Override
	public String getColorGroup() {
		throw new UnsupportedOperationException();
	}
}
